package com.eight.feign;

import com.eight.pojo.UserCharge;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("rentcar-customer")
public interface UserChargeFeign {
    /**
     * 查询uid对应的订单信息
     * @param id uid
     * @return 查询的订单信息
     */
    @GetMapping("/customer/userCharge/selectChargeOrder/{id}")
    UserCharge selectChargeOrder(@PathVariable String id);

    /**
     * 根据充值订单的id更新状态为statu
     * @param serilcode 订单id
     * @param statu 要更新成的状态
     * @return 更新结果
     */
    @GetMapping("/customer/userCharge/upStatus/{serilcode}/{statu}")
    int upStatus(@PathVariable String serilcode, @PathVariable Integer statu);
}
